FROM 10.0.93.25:5000/bonc/tomcat-maven:1.0

MAINTAINER "bonc <bonc@bonc.com.cn>"

ENV CATALINA_HOME /opt/tomcat/
ENV PATH $CATALINA_HOME/bin:$PATH

ENV CODE_DIR /user/code

WORKDIR $CODE_DIR

COPY . $CODE_DIR

RUN mvn package

RUN cp target/helloworld.war /opt/tomcat/webapps/

CMD ["catalina.sh", "run"]
